package sanrenxing.dayEnd.backRepertoryTotal.domain;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 功能：现金账户实体类（连表）
 * 编写者：蒋玲苹
 * 日期：2021-03-17
 * 版本：1.0
 */
@Component
public class CashAccountTwo implements Serializable {
    //现金账户ID
    private String caId;
    //基金ID
    private String fundName;
    //银行卡号
    private String bankCard;
    //账户名称
    private String accName;
    //银行名称
    private String bankName;
    //存款类型
    private int depType;
    //卡号利率
    private int cardRate;
    //计息期间
    private String intePer;
    //开户时间
    private String openTime;
    //结束时间
    private String endTime;
    //默认构造方法
    public CashAccountTwo() {
    }
    //带参数的构造方法
    public CashAccountTwo(String caId, String fundName, String bankCard, String accName, String bankName, int depType, int cardRate, String intePer, String openTime, String endTime) {
        this.caId = caId;
        this.fundName = fundName;
        this.bankCard = bankCard;
        this.accName = accName;
        this.bankName = bankName;
        this.depType = depType;
        this.cardRate = cardRate;
        this.intePer = intePer;
        this.openTime = openTime;
        this.endTime = endTime;
    }
    //set和get方法
    public String getCaId() {
        return caId;
    }

    public void setCaId(String caId) {
        this.caId = caId;
    }

    public String getFundName() {
        return fundName;
    }

    public void setFundName(String fundName) {
        this.fundName = fundName;
    }

    public String getBankCard() {
        return bankCard;
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard;
    }

    public String getAccName() {
        return accName;
    }

    public void setAccName(String accName) {
        if(accName.trim().equals("")){
            this.accName=null;
        }else
        this.accName = accName;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        if(bankName.trim().equals("")){
            this.bankName=null;
        }
        this.bankName = bankName;
    }

    public int getDepType() {
        return depType;
    }

    public void setDepType(int depType) {
        this.depType = depType;
    }

    public int getCardRate() {
        return cardRate;
    }

    public void setCardRate(int cardRate) {
        this.cardRate = cardRate;
    }

    public String getIntePer() {
        return intePer;
    }

    public void setIntePer(String intePer) {
        this.intePer = intePer;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

}
